Technical Q&As


QTW 56 - Audio Dropouts While Loading .BMP Files (1-Aug-95)


Q I want to play an audio-only movie file as part of a slide show. While loading .BMP files in preparation for blitting to the display, the audio occasionally cuts out. This occurs only when playing from a 2X-speed CD-ROM drive (the audio does not cut out when loading the same files from the hard disk).

What can I do to get QuickTime for Windows to successfully seek and load .BMP images from the CD while playing an audio-only QuickTime movie?

A If the problem occurs during 16-bit audio segments, the audio dropouts could be the result of a high-DMA channel conflict between the sound card and the CD-ROM drive. If the drop-outs do occur during 16-bit audio playback, but not when tested on other MPC systems (with different CD-ROM drives and/or sound cards), then you should be able to resolve the problem by reconfiguring the DMA channels and interrupt requests (IRQs) for the CD-ROM drive and/or the sound card.

However, the problem is more likely to be that you are asking the CD-ROM to read too much at a time, and that the .BMP files are too far away from the audio track. Here are some possible solutions:

1. Reduce the number of directory entries to 32 or fewer. Finding and opening a file on a CD-ROM with directories containing greater than 32 entries is extremely slow.

2. Move the .BMPs closer to the movie (to reduce the seek time).

3. Break the .BMPs up into smaller files so QuickTime for Windows can read from the movie more often.

4. Insert the .BMPs into the "audio" movie at the point you want them displayed, and let QuickTime for Windows play everything.

5. Insert the images into the movie, open the movie file twice, and display them in any order while the audio track is playing.

6. PrerollMovie() from the current point immediately prior to loading the .BMP files.

7. Increase the maximum cache size from the 128KB default in QTW.INI:

    [Data Handler]
    MaxCacheSize={64|128|256|512}

Because changes to QTW.INI affect all QuickTime for Windows applications, we discourage making any permanent changes to QTW.INI. The change should be made programmatically before the call to QTInitialize(), and undone after the call to QTTerminate().

8. Disable the SMARTDRV cache, or specify /u.

Technical Q&As
Previous Question | Contents | Next Question